Optimal. Leaf size=18 \[ \frac{x}{a}-\frac{b \log (a x+b)}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0103014, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {193, 43} \[ \frac{x}{a}-\frac{b \log (a x+b)}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 193
Rule 43
Rubi steps
\begin{align*} \int \frac{1}{a+\frac{b}{x}} \, dx &=\int \frac{x}{b+a x} \, dx\\ &=\int \left (\frac{1}{a}-\frac{b}{a (b+a x)}\right ) \, dx\\ &=\frac{x}{a}-\frac{b \log (b+a x)}{a^2}\\ \end{align*}
Mathematica [A] time = 0.0024483, size = 18, normalized size = 1. \[ \frac{x}{a}-\frac{b \log (a x+b)}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 19, normalized size = 1.1 \begin{align*}{\frac{x}{a}}-{\frac{b\ln \left ( ax+b \right ) }{{a}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.989438, size = 24, normalized size = 1.33 \begin{align*} \frac{x}{a} - \frac{b \log \left (a x + b\right )}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.38824, size = 38, normalized size = 2.11 \begin{align*} \frac{a x - b \log \left (a x + b\right )}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.248605, size = 14, normalized size = 0.78 \begin{align*} \frac{x}{a} - \frac{b \log{\left (a x + b \right )}}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10518, size = 26, normalized size = 1.44 \begin{align*} \frac{x}{a} - \frac{b \log \left ({\left | a x + b \right |}\right )}{a^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]